package cn.itsource.ymcc.mapper;

import cn.itsource.ymcc.domain.CourseSummary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zongchangjiang
 * @since 2023-03-31
 */
@Repository
public interface CourseSummaryMapper extends BaseMapper<CourseSummary> {


    /**
     *
     * @param id  当前要修改的id
     * @param sale  修改销量
     * @param view  修改浏览器
     * @param comment 修改评论数
     */
    void updateSumById(@Param("id") Long id,
                       @Param("sale")Integer sale,
                       @Param("view")Integer view,
                       @Param("comment")Integer comment);
}
